// SCENARIO SCRIPT

// This is the special script for your entire scenario. It contains
// special encounters and code accessable from anywhere in the scenario. it also
// contains the code that initializes important special things in the
// scenario (like shops and names and descriptions of special items).

// You can create your own states, but you should give all of them numbers greater than
// or equal to 10.

beginscenarioscript;

variables;

body;

// This is the state that is called every time the scenario is loaded,
// even when a save file in the scenario is loaded. Some things that should go here:
//    Names and descriptions of special items.
//    Names and effects of custom special abilities.
beginstate LOAD_SCEN_STATE;

	init_quest(0,"Leppington's Squad","Mayor Tallen hired you to look for captain Leppington's squad, or what is left of them.");
	init_quest(1,"Ogre Negotiations","The ogres are hiding somewhere in the mountains. Mayor Tallen has entrusted you with the authority to negotiate with their chieftain.");
	init_quest(2,"Destroy the Ogres","Mayor Tallen has authorized the excecution of the ogre chief and any other ogre that you find.");
	init_quest(3,"Kill the Witch","Graybeard, the former chief of the ogres, wants you to kill the human sorcerer who provoked the ogre attacks on Quarhag Pass.");
	init_quest(4,"Finding Jarmo","A man named Jarmo lives in the northern part of Quarhag Pass. Jorge of Passton wants to know what has become of him.");

	break;

// This is the state that is called only once at the very beginning of 
// the scenario. Some things that should go here:
//    The stuff in shops.
//    Creating horses and boats.
beginstate START_SCEN_STATE;

	// Initialize a few shops.
	
	// Shop 0 - Sepon metallituotteen
	add_item_to_shop(0,56,4);
	add_item_to_shop(0,61,2);
	add_item_to_shop(0,71,6);
	add_item_to_shop(0,75,1);
	add_item_to_shop(0,65,10);
	add_item_to_shop(0,67,1);
	add_item_to_shop(0,31,8);
	add_item_to_shop(0,35,1);
	add_item_to_shop(0,141,2);
	add_item_to_shop(0,142,1);
	add_item_to_shop(0,127,7);
	add_item_to_shop(0,132,1);
	
	// Shop 1 - Nuolon ammukset
	add_item_to_shop(1,101,20);
	add_item_to_shop(1,102,10);
	add_item_to_shop(1,106,15);
	add_item_to_shop(1,107,8);
	add_item_to_shop(1,86,24);
	add_item_to_shop(1,87,13);
	add_item_to_shop(1,91,1);
	add_item_to_shop(1,96,1);
	
	// Shop 2 - Janen lkejuomat
	add_item_to_shop(2,220,6);
	add_item_to_shop(2,221,3);
	add_item_to_shop(2,222,2);
	add_item_to_shop(2,223,5);
	add_item_to_shop(2,225,2);
	add_item_to_shop(2,228,2);
	add_item_to_shop(2,231,3);
	
	// Shop 3 - Erelonin Pappisloitsut

	add_item_to_shop(3,3000,3);

	add_item_to_shop(3,3001,3);

	add_item_to_shop(3,3002,3);

	add_item_to_shop(3,3003,3);

	add_item_to_shop(3,3004,3);

	add_item_to_shop(3,3005,2);

	add_item_to_shop(3,3006,2);

	add_item_to_shop(3,3007,2);

	add_item_to_shop(3,3008,2);
	add_item_to_shop(3,3009,2);

	add_item_to_shop(3,3010,1);

	// Shop 4 - Hyrmien reseptit
	add_item_to_shop(4,4002,1);
	add_item_to_shop(4,4003,1);
	add_item_to_shop(4,4004,1);
	
add_item_to_shop(4,4005,1);
	add_item_to_shop(4,4007,1);

	// Shop 5 - Hyrmien aseet
	add_item_to_shop(5,85,20);

	// Shop 6 - Hyrmien ruokaa
	add_item_to_shop(6,9,10);
break;

// This state is called every tick wherever the party is in the scenario.
// You can use the set_state
beginstate START_STATE;

break;

// Place your own states below. Give each a number at least 10.
beginstate 10;
	reset_dialog();
	add_dialog_str(0,"Under a Strange Religion - by I.M Morean. The latest census of the Empire counted at least ten thousand individual religions amongst our vast lands. Therefore it is imperative that we as citizens know of the taboos of all the major and minor religions.",0);
	add_dialog_str(1,"Only by knowing the traditions and rituals of them all can one hope to avoid the various faux pas always looming over one's head whilst discussing religion. My book is a comprehensive study of all the religions in the world.",0);
	add_dialog_str(2,"I will spend time categorizing the religions and explain in brief their basic beliefs; no matter how ludicrous. Chapter One - The Chicken in the Pants Variety...",0);
	run_dialog(1);

break;

